package com.xx.springboot.designPattern.DecoratorMode;/**
 * Created by xiaoxiunique on 2018-11-14.
 */

/**
 * <p>
 * TODO: 装饰者模式 被装饰者
 * </p>
 *
 * @author hcg
 * @date 2018-11-14 11:20
 * @className Espresso
 */
public class Espresso extends Beverage{
    public Espresso() {
        description = "Espresso";
    }

    @Override
    public double cost() {
        return 1.99;
    }
}
